home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
003
/
dbepson.arc
/
DBEPSON.DOC
next >
Wrap
Text File
|
1985-07-11
|
4KB
|
102 lines
dBASE III EPSON PRINTER SETUP
Larry Kraus
Program Resources, Inc.
U.S. EPA Contract #68-91-6849
March, 1985
This dBASE III utility provides both interactive and programmatic
control of EPSON printer feature. It is comrised of the
following three files:
DBEPSON.DOC - This document
DBEPSON.MEM - Printer control code memory variables
DBEPSON.PRG - Interactive printer setup program
To intall DBEPSON simply copy the .PRG and .MEM file to your
dBASE III directory.
Interactive Usage:
To use DBEPSON interactively execute dBASE III and execute the
procedure DBEPSON:
DO DBEPSON
You will be presented with a menu of Epson printer setup options.
To select an option simply enter the number to the right of the
option and press return. When an option is selected the
appropriate control code is sent to the printer and the menu is
re-displayed. You can select as many options as you like. When
you are finished select the "Exit Procedure" option and you will
be returned to dBASE III command level.
Note that the procedure DBEPSON will load the memory variables in
the DBEPSON.MEM file. The names of these memory variables begin
with the letters EP. When the procedure exits it will release
all memory variable which begin with EP.
Programmatic Usage:
DBEPSON can be used programmatically from within procedures or
report forms. In either case the control code memory variables
must be loaded from the DBEPSON.MEM file using the dBASE III
RESTORE command:
RESTORE FROM DBEPSON
From within a procedure you can execute the DBEPSON procedure to
let the user select print options from the menu or you can send
control codes directly to the printer. To send codes to the
printer use the following dBASE III commands:
SET PRINT ON
? variable
SET PRINT OFF
Where "variable" is one of the variable names in Table I.
To control the printer directly from a report form simply
reference the memory variables in Table I within the report
definition. For instance if you want the report title to be
printed with underlining enter the following in the report title
field:
EPUND+"your report title"+EPNOUND
You must restore the DBEPSON memory varaibles before entering the
REPORT command.
TABLE I
DBEPSON Memory Variables
EPINIT = Initialize printer to power up state
EPBELL = Sound printer bell
EPLF = Immediate line feed
EPFF = Immediate form feed
EP8LPI = 8 lines per inch
EP6LPI = 6 lines per inch
EPDRAFT = Draft mode
EPLETTER = Letter quality mode
EPELITE = Elite font mode
EPNOELITE = Cancel elite font mode
EPPORP = Proportional spacing
EPNOPORP = Cancel proportional spacing
EPITAL = Italics font mode
EPNOITAL = Cancel italics font mode
EPEXPAND = Expanded print mode
EPNOEXPAND = Cancel expanded print mode
EPCOMP = Compressed print mode
EPNOCOMP = Cancel compressed print mode
EPEMPH = Emphasized print mode
EPNOEMPH = Cancel emphasized print mode
EPDBL = Double-strike print mode
EPNODBL = Cancel double-strike print mode
EPUND = Start underline
EPNOUND = Stop underline
EPSUPER = Superscriptt mode
EPSUB = Subscript mode
EPNOSCRP = Cancel super/subscript mode